LIBS=-lm
CXX=g++
FLEX=flex++
BISON=bison++

all: calc

calc: calc.l
	$(FLEX) $^;
	$(CXX) -c lex.yy.cc;
	$(CXX) lex.yy.o -o $@ $(LIBS);
	
clean:
	rm -rf lex.yy.cc lex.yy.o calc

